package com.liang.reflectdemo3;

public class Student {
    private String name;
    private int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void function1() {
        System.out.println("无参无返回值");
    }

    public void function2(String name) {
        System.out.println("有参无返回值"+name);
    }

    public String function3(String name) {
        System.out.println("有参有返回值"+name);
        return "aaa";
    }

    private String function4(String name) {
        System.out.println("私有有参有返回值"+name);
        return "aaa";
    }
}
